package com.weixing.mall.base.orm;

import java.util.List;

/**
 * 分页工具
 *
 * @author  siashan
 * @since  1.0
 **/
public class PageUtil {

    public static MPage newPage(long currPage, long pageSize, long total, List records) {
        MPage mPage = new MPage<>(currPage, pageSize, total);
        mPage.setRecords(records);
        return mPage;
    }
}
